package entity.user;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import java.time.LocalDateTime;
import lombok.Getter;
import lombok.Setter;

/**
 * <p>
 * 历史消息表
 * </p>
 *
 * @author ZL
 * @since 2022-11-12
 */
@Getter
@Setter
@TableName("message_history")
public class MessageHistory implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 主键
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    /**
     * 发送者昵称
     */
    @TableField("sender_name")
    private String senderName;

    /**
     * 消息发送时间
     */
    @TableField("message_time")
    private LocalDateTime messageTime;

    /**
     * 消息内容
     */
    @TableField("message_content")
    private String messageContent;

    /**
     * 消息类型
     */
    @TableField("message_type")
    private String messageType;

    /**
     * 删除标识
     */
    @TableField("delete_flag")
    private String deleteFlag;


}
